package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Transient;

import java.util.Date;

@Data
/**
 * 订单站内信对象 order_letter
 *
 * @author hjf
 * @date 2025-08-04
 */
public class OrderLetter extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 订单编码
     */
    //@Excel(name = "订单编码")
    private String orderId;

    /**
     * 提交人
     */
    //@Excel(name = "提交人")
    private Long issuerUser;

    /**
     * 审核人
     */
    //@Excel(name = "审核人")
    private Long auditUser;

    /**
     * 标题
     */
    //@Excel(name = "标题")
    private String title;

    /**
     * 提交内容
     */
    //@Excel(name = "提交内容")
    private String issuerContent;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "MM-dd HH:mm:ss")
    //@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issuerTime;

    /**
     * 回复内容
     */
    //@Excel(name = "回复内容")
    private String replyContent;

    /**
     * 回复时间
     */
    @JsonFormat(pattern = "MM-dd HH:mm:ss")
    //@Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replyTime;

    /**
     * 0默认1同意2不同意3延后处理
     */
    //@Excel(name = "0默认1同意2不同意3延后处理")
    private Long isAgree;

    //@Excel(name = "跟进id")
    private Long orderFollowId;

    private Long goAudit;

    private String issuerUserName;

    private Integer replyStatus;

    @Transient
    private String issuerName;
    @Transient
    private String auditName;
    @Transient
    private String synthesis;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setIssuerUser(Long issuerUser) {
        this.issuerUser = issuerUser;
    }

    public Long getIssuerUser() {
        return issuerUser;
    }

    public void setAuditUser(Long auditUser) {
        this.auditUser = auditUser;
    }

    public Long getAuditUser() {
        return auditUser;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setIssuerContent(String issuerContent) {
        this.issuerContent = issuerContent;
    }

    public String getIssuerContent() {
        return issuerContent;
    }

    public void setIssuerTime(Date issuerTime) {
        this.issuerTime = issuerTime;
    }

    public Date getIssuerTime() {
        return issuerTime;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    public Date getReplyTime() {
        return replyTime;
    }

    public void setIsAgree(Long isAgree) {
        this.isAgree = isAgree;
    }

    public Long getIsAgree() {
        return isAgree;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("issuerUser", getIssuerUser())
                .append("auditUser", getAuditUser())
                .append("title", getTitle())
                .append("issuerContent", getIssuerContent())
                .append("issuerTime", getIssuerTime())
                .append("replyContent", getReplyContent())
                .append("replyTime", getReplyTime())
                .append("isAgree", getIsAgree())
                .toString();
    }
}

